Skip to content

chore(deps): disable default features on AWS SDK crates - #292

Merged
adiftsdev merged 1 commit into
mainfrom
fix/cargo-default-feature-change
Oct 13, 2026
Merged

adiftsdev merged 1 commit into
mainfrom
fix/cargo-default-feature-change

Conversation

@adiftsdev

@adiftsdev adiftsdev commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Why is this change being made?

  1. Remove the unused default feature from the AWS SDK crates to drop unneeded dependencies.

What is changing?

  1. Set default-features = false on all aws-sdk-* dependencies and enable only the needed features
  2. Cargo.lock: unused dependencies removed; no version changes.
  3. No runtime behavior change.

Related Links

  • Issue #, if available: N/A

Testing

How was this tested?

  1. Build, clippy, and fmt pass (debug and release).
  2. Unit tests pass.
  3. Integration tests pass
  4. cargo tree confirms the release binary no longer includes the removed feature.

When testing locally, provide testing artifact(s):

  1. Unit tests: 349 passed, 0 failed, 5 ignored (pre-existing #[ignore] on refresh_executor unix tests).
  2. Note: test_prefetch_with_tags_serves_cached_value is flaky. It uses a fixed 3s sleep before checking the prefetch cache. It failed once and then passed on rerun with the same binary. This is unrelated to this change.
  3. Note: integration tests must run against the debug binary. locate_provider_binary() prefers target/release/, and the file_credentials reload tests depend on debug-only env overrides.

Reviewee Checklist

Update the checklist after submitting the PR

  • I have reviewed, tested and understand all changes
  • I have filled out the Description and Testing sections above
  • Build and Unit tests are passing
  • Unit test coverage check is passing
    If not, why: Not run locally; pending CI (Codecov). No source code changes, so coverage is unaffected.
  • Integration tests pass locally
  • I have updated integration tests (if needed)
    N/A: only the integration-tests/Cargo.toml feature change was needed; no test code changes.
  • I have ensured no sensitive information is leaking (i.e., no logging of sensitive fields, or otherwise)
    Dependency-only change; no code or logging changes.
  • I have added explanatory comments for complex logic, new classes/methods and new tests
    N/A: no new logic.
  • I have updated README/documentation (if needed)
    N/A: no user-facing changes.
  • I have clearly called out breaking changes (if any)
    None. Rare edge case: downstream aws_secretsmanager_caching users who disable SDK default features and use a deprecated BehaviorVersion must enable an HTTP client themselves.

Reviewer Checklist

All reviewers please ensure the following are true before reviewing:

  • Reviewee checklist has been accurately filled out
  • Code changes align with stated purpose in description
  • Test coverage adequately validates the changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.35%. Comparing base (981a470) to head (c219d6f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #292   +/-   ##
=======================================
  Coverage   86.35%   86.35%           
=======================================
  Files          34       34           
  Lines        9422     9422           
  Branches     9422     9422           
=======================================
  Hits         8136     8136           
  Misses       1153     1153           
  Partials      133      133           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adiftsdev adiftsdev added the safe-to-test Maintainer approval to run integration tests for external contributor PRs. label Oct 13, 2026
@github-actions github-actions Bot removed the safe-to-test Maintainer approval to run integration tests for external contributor PRs. label Oct 13, 2026
@aws aws deleted a comment from secrets-manager-ai-code-review Bot Oct 13, 2026
@adiftsdev
adiftsdev marked this pull request as ready for review October 13, 2026 17:00
@adiftsdev
adiftsdev requested a review from a team as a code owner October 13, 2026 17:00
@adiftsdev
adiftsdev merged commit 4380edb into main Oct 13, 2026
9 of 11 checks passed
@adiftsdev
adiftsdev deleted the fix/cargo-default-feature-change branch October 13, 2026 18:25
@dertin dertin mentioned this pull request Oct 16, 2026
6 of 10 tasks

This branch had an error being deployed

1 failed deployment
code-review — c219d6f6 Deployed Oct 13, 2026 by adiftsdev via review #186
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants